From: Mark A. Hershberger Date: Thu, 5 Jan 2012 04:53:05 +0000 (+0000) Subject: Bug 33514 - Make category "columns" (table cells) equal width X-Git-Tag: 1.31.0-rc.0~25517 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=7229a31a0d37076a6d36f1622d9588d4dbab07f7;p=lhc%2Fweb%2Fwiklou.git Bug 33514 - Make category "columns" (table cells) equal width Author: Erwin Dokter --- diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 098614253c..4d3532cc28 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -486,10 +486,11 @@ class CategoryViewer extends ContextSource { # Split into three columns $columns = array_chunk( $columns, ceil( count( $columns ) / 3 ), true /* preserve keys */ ); - $ret = '
'; + $ret = ''; $prevchar = null; foreach ( $columns as $column ) { + $ret .= '\n\n"; } - $ret .= '
'; $colContents = array(); # Kind of like array_flip() here, but we keep duplicates in an @@ -519,10 +520,10 @@ class CategoryViewer extends ContextSource { $prevchar = $char; } - $ret .= ""; + $ret .= "
'; + $ret .= '
'; return $ret; }